<?php slot('title', sprintf("%s", $ktd_topic->getTitle())) ?>
<?php slot('content-bg', '') ?>
<div>
    <div class="cat"><img style="vertical-align: top" src="/images/mgen/icon/pastille.png"/><h1><?php echo $ktd_topic->getTitle() ?></h1></div>
        <?php include_partial('topic_buttons', array('ktd_topic' => $ktd_topic)) ?>
        <?php include_partial('pagination', array('pager' => $pager, 'ktd_topic' => $ktd_topic)) ?>
        <!-- Messages -->
        <div class="topic_message_list">
            <?php $i = 1; ?>
            <?php foreach($ktd_messages as $ktd_message) : ?>
                <?php include_partial('message', array('ktd_message' => $ktd_message, 'i' => $i, 'ktd_player'  => $ktd_message->getKTDPlayer())); ?>
            <?php $i== 0 ? $i = 1: $i = 0; ?>
            <?php endforeach; ?>
        </div>
        <!-- Fin de Messages -->
        <?php include_partial('pagination', array('pager' => $pager, 'ktd_topic' => $ktd_topic)) ?>
        <?php include_partial('topic_buttons', array('ktd_topic' => $ktd_topic)) ?>
        <?php isset($form) ? include_partial('quick_message', array('form'=>$form, 'ktd_topic'=> $ktd_topic)) : NULL ?>
</div>
        